package com.chaofan.websocket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chaofan.websocket.entity.LuckRecord;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface LuckRecordMapper extends BaseMapper<LuckRecord> {
    @Select("SELECT * FROM admin_lucky_record where prize_time is not NULL and state=1\n" +
            "ORDER BY prize_time DESC limit 1")
    LuckRecord getMaxPrizeRecordByPrizeTime();
}
